package com.heima.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.user.dtos.UserDto;
import com.heima.model.user.pojos.User;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @Description:
 * @Version: V1.0
 */
public interface UserService extends IService<User> {

    /**
     * 查询列表
     * @param dto
     * @return
     */
    public ResponseResult findPage(UserDto dto);

    /**
     * 新增
     * @param user
     * @return
     */
    public ResponseResult insert(User user);

    /**
     * 修改
     * @param user
     * @return
     */
    public ResponseResult update(User user);

    /**
     * 删除
     * @param id
     * @return
     */
    public ResponseResult deleteById(Long id);

}
